<extend name="Index:default" />
<block name="header"><div class="ic_header"></block>
<block name="nav"><div class="ic_nav" id="j_nav"></block>
<block name="footer"><div class="ic_footer hide"></block>
<block name="cate_css"><div class="mod_cate" id="category_container"></block>
<block name="stylecss">
	<link rel="stylesheet" href="__PUBLIC__/home/css/center_style.css">
	<link rel="stylesheet" href="__PUBLIC__/admin/css/font-awesome.min.css">
	<style type="text/css">
		.center_details ul li{
			width:130px;
		}
		.page ul li a{
			color:#7E7E7E;
		}
		.page ul li{
			float:left;
			width:20px;
			height:20px;
			line-height:20px;
			font-size:17px;
			font-family:"微软雅黑";
			text-align: center;
			margin:5px 2px auto 2px; 
			border:1px solid #CCCCCC;
		}
		.page ul .disable{
			display:none;
		}
	</style>
</block>
<block name="privatejs">
	<script>
	$("#category_container").hover(function(){
		$(this).toggleClass("mod_cate_on");
	});
	$(".center_ul li a").hover(function(){
		$(this).css("color","rgb(214,20,93)");	
	},function(){
		$(".center_ul li a").css("color","rgb(85,85,85)");
	});
	$("#click1").bind("click",function(event){
			$("#click2").css("background","#ccc");
			$(this).css("background","#ffffff");
			$(".center_click").css("display","block");
			$(".center_click2").css("display","none");
			event.preventDefault();
	});
	$("#click2").bind("click",function(event){
			$("#click1").css("background","#ccc");
			$(this).css("background","#ffffff");
			$(".center_click").css("display","none");
			$(".center_click2").css("display","block");
			event.preventDefault();

	});
</script>
</block>
<block name="content">
	<div class="center_main">
		<div class="breadnav">		
			<span><a href="__APP__/home/index" style="color:rgb(8,92,155)">{$bread.0}</a></span>&nbsp;>&nbsp;<span><a href="__CONTROLLER__/index" style="color:rgb(8,92,155)">{$bread.1}</a>&nbsp;></span><span>&nbsp;{$bread.2}</span>
		</div>
		<div class="center_left">
		<div class="center_classify">
			<h1>交易管理<h1>
		</div>
			<ul class="center_ul">
				<li style="background:rgb(49,101,176);"><a href="__CONTROLLER__/indent" style="color:#ffffff;">我的订单</a></li>
				<li><a href="__CONTROLLER__/collect">我的收藏</a></li>
				<li><a href="__CONTROLLER__/scores">我的积分</a></li>
				<li><a href="__CONTROLLER__/balance">我的账户余额</a></li>
		<div class="center_classify">
			<h1>服务中心<h1>
		</div>
				<li><a href="__APP__/Home/Service" target="_blank">催办订单</a></li>
				<li><a href="__APP__/Home/Service" target="_blank">修改订单</a></li>
				<li><a href="__APP__/Home/Service" target="_blank">取消订单</a></li>
		<div class="center_classify">
			<h1>资料管理<h1>
		</div>
				<li><a href="__CONTROLLER__/data">个人资料</a></li>
				<li><a href="__CONTROLLER__/delivery">收货信息</a></li>
			</ul>	
		</div>
		<div class="center_right">
			<span class="center_indent"><h1>我的订单</h1></span>
			<div class="center_common">
					<ul>
						<a href=""><li id="click1" style="background:#ffffff">普通订单</li></a>
					</ul>
					<span class="center_state">查看订单状态说明</span>
			</div>
			<!--点击的时候隐藏-->
			<div class="center_click">
			<span class="center_qq"></span>
			<div class="center_details">
				<ul>
					<li>订单编号</li>
					<li>下单日期</li>
					<li>收货人</li>
					<li>总金额</li>
					<li>状态</li>
					<li>操作</li>
				</ul>
			</div>
			<foreach name="orderdata" item="vo">
				<div class="center_details">
					<ul>
						<li>{$vo.onumber}</li>
						<li>{$vo.otime}</li>
						<li>{$vo.deliveryaddress}</li>
						<li>{$vo['gprice']*$vo['gnums']}</li>
						<li>
							<switch name="vo.ostate">
								<case value="0">交易取消</case>
								<case value="1">正在出库…</case>
								<case value="2">已出库</case>
								<case value="3">换货中…</case>
								<case value="4">退货中…</case>
								<case value="5">交易完成</case>
								<case value="6">交易完成</case>
							</switch>
						</li>
						<li>
							<switch name="vo.ostate">
								<case value="0">订单已取消</case>
								<case value="1">
									<a href="__CONTROLLER__/cancelOrder/id/{$vo.id}">取消订单</a>
								</case>
								<case value="2">
									<a href="__CONTROLLER__/confirmOrder/id/{$vo.id}">确认收货</a>
									|
									<a href="__CONTROLLER__/changeOrder/id/{$vo.id}">换货</a>
									|
									<a href="__CONTROLLER__/returnOrder/id/{$vo.id}">退货</a>
								</case>
								<case value="3">操作禁止</case>
								<case value="4">操作禁止</case>
								<case value="5">
									<a href="__APP__/home/Review/index/id/{$vo.id}">去评价</a>
									|
									<a href="__CONTROLLER__/changeOrder/id/{$vo.id}">换货</a>
									|
									<a href="__CONTROLLER__/returnOrder/id/{$vo.id}">退货</a>
								</case>
								<case value="6">已评价</case>
							</switch>
						</li>
					</ul>
				</div>
			</foreach>
			<div class="page">{$page}</div>
	</div>
	<!--点击隐藏结束-->
		</div>

		</div>
</div>
	<div class="mod_backtop hide" id="j_backtop">
            <a href="javascript:" title="回顶部" ytag="72300">回顶部</a>
        </div>
</block>
